﻿// -----------------------------------------------------------------------------
// Generate By Furion Tools v2.16.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using HOPU.OnlineSchool.Core;

namespace HOPU.OnlineSchool.Core
{
    public partial class EduPractice : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<EduPractice, MasterDbContextLocator>
    {
    
        public int Id { get; set; }
        public string Remark { get; set; }
        public int? Score { get; set; }
        public DateTime? GmtCreate { get; set; }
        public DateTime? GmtModified { get; set; }
    
        public void Configure(EntityTypeBuilder<EduPractice> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.ToTable("edu_practice");

                entityBuilder.Property(e => e.Id).HasColumnName("id");

                entityBuilder.Property(e => e.GmtCreate).HasColumnName("gmt_create");

                entityBuilder.Property(e => e.GmtModified).HasColumnName("gmt_modified");

                entityBuilder.Property(e => e.Remark)
                    .HasMaxLength(255)
                    .HasColumnName("remark");

                entityBuilder.Property(e => e.Score).HasColumnName("score");
        }

    }
}
